package cn.pfz.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ConsumptionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ConsumptionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCnoIsNull() {
            addCriterion("cno is null");
            return (Criteria) this;
        }

        public Criteria andCnoIsNotNull() {
            addCriterion("cno is not null");
            return (Criteria) this;
        }

        public Criteria andCnoEqualTo(String value) {
            addCriterion("cno =", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotEqualTo(String value) {
            addCriterion("cno <>", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThan(String value) {
            addCriterion("cno >", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThanOrEqualTo(String value) {
            addCriterion("cno >=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThan(String value) {
            addCriterion("cno <", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThanOrEqualTo(String value) {
            addCriterion("cno <=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLike(String value) {
            addCriterion("cno like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotLike(String value) {
            addCriterion("cno not like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoIn(List<String> values) {
            addCriterion("cno in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotIn(List<String> values) {
            addCriterion("cno not in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoBetween(String value1, String value2) {
            addCriterion("cno between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotBetween(String value1, String value2) {
            addCriterion("cno not between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andTotal_amountIsNull() {
            addCriterion("total_amount is null");
            return (Criteria) this;
        }

        public Criteria andTotal_amountIsNotNull() {
            addCriterion("total_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTotal_amountEqualTo(BigDecimal value) {
            addCriterion("total_amount =", value, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountNotEqualTo(BigDecimal value) {
            addCriterion("total_amount <>", value, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountGreaterThan(BigDecimal value) {
            addCriterion("total_amount >", value, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_amount >=", value, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountLessThan(BigDecimal value) {
            addCriterion("total_amount <", value, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_amount <=", value, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountIn(List<BigDecimal> values) {
            addCriterion("total_amount in", values, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountNotIn(List<BigDecimal> values) {
            addCriterion("total_amount not in", values, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_amount between", value1, value2, "total_amount");
            return (Criteria) this;
        }

        public Criteria andTotal_amountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_amount not between", value1, value2, "total_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountIsNull() {
            addCriterion("pay_amount is null");
            return (Criteria) this;
        }

        public Criteria andPay_amountIsNotNull() {
            addCriterion("pay_amount is not null");
            return (Criteria) this;
        }

        public Criteria andPay_amountEqualTo(BigDecimal value) {
            addCriterion("pay_amount =", value, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountNotEqualTo(BigDecimal value) {
            addCriterion("pay_amount <>", value, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountGreaterThan(BigDecimal value) {
            addCriterion("pay_amount >", value, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_amount >=", value, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountLessThan(BigDecimal value) {
            addCriterion("pay_amount <", value, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_amount <=", value, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountIn(List<BigDecimal> values) {
            addCriterion("pay_amount in", values, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountNotIn(List<BigDecimal> values) {
            addCriterion("pay_amount not in", values, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_amount between", value1, value2, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andPay_amountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_amount not between", value1, value2, "pay_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountIsNull() {
            addCriterion("discount_amount is null");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountIsNotNull() {
            addCriterion("discount_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountEqualTo(BigDecimal value) {
            addCriterion("discount_amount =", value, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountNotEqualTo(BigDecimal value) {
            addCriterion("discount_amount <>", value, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountGreaterThan(BigDecimal value) {
            addCriterion("discount_amount >", value, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_amount >=", value, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountLessThan(BigDecimal value) {
            addCriterion("discount_amount <", value, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_amount <=", value, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountIn(List<BigDecimal> values) {
            addCriterion("discount_amount in", values, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountNotIn(List<BigDecimal> values) {
            addCriterion("discount_amount not in", values, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_amount between", value1, value2, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andDiscount_amountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_amount not between", value1, value2, "discount_amount");
            return (Criteria) this;
        }

        public Criteria andInfoIsNull() {
            addCriterion("info is null");
            return (Criteria) this;
        }

        public Criteria andInfoIsNotNull() {
            addCriterion("info is not null");
            return (Criteria) this;
        }

        public Criteria andInfoEqualTo(String value) {
            addCriterion("info =", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotEqualTo(String value) {
            addCriterion("info <>", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoGreaterThan(String value) {
            addCriterion("info >", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoGreaterThanOrEqualTo(String value) {
            addCriterion("info >=", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoLessThan(String value) {
            addCriterion("info <", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoLessThanOrEqualTo(String value) {
            addCriterion("info <=", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoLike(String value) {
            addCriterion("info like", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotLike(String value) {
            addCriterion("info not like", value, "info");
            return (Criteria) this;
        }

        public Criteria andInfoIn(List<String> values) {
            addCriterion("info in", values, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotIn(List<String> values) {
            addCriterion("info not in", values, "info");
            return (Criteria) this;
        }

        public Criteria andInfoBetween(String value1, String value2) {
            addCriterion("info between", value1, value2, "info");
            return (Criteria) this;
        }

        public Criteria andInfoNotBetween(String value1, String value2) {
            addCriterion("info not between", value1, value2, "info");
            return (Criteria) this;
        }

        public Criteria andPay_timeIsNull() {
            addCriterion("pay_time is null");
            return (Criteria) this;
        }

        public Criteria andPay_timeIsNotNull() {
            addCriterion("pay_time is not null");
            return (Criteria) this;
        }

        public Criteria andPay_timeEqualTo(Date value) {
            addCriterion("pay_time =", value, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeNotEqualTo(Date value) {
            addCriterion("pay_time <>", value, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeGreaterThan(Date value) {
            addCriterion("pay_time >", value, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_time >=", value, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeLessThan(Date value) {
            addCriterion("pay_time <", value, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeLessThanOrEqualTo(Date value) {
            addCriterion("pay_time <=", value, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeIn(List<Date> values) {
            addCriterion("pay_time in", values, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeNotIn(List<Date> values) {
            addCriterion("pay_time not in", values, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeBetween(Date value1, Date value2) {
            addCriterion("pay_time between", value1, value2, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPay_timeNotBetween(Date value1, Date value2) {
            addCriterion("pay_time not between", value1, value2, "pay_time");
            return (Criteria) this;
        }

        public Criteria andPayee_idIsNull() {
            addCriterion("payee_id is null");
            return (Criteria) this;
        }

        public Criteria andPayee_idIsNotNull() {
            addCriterion("payee_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayee_idEqualTo(Long value) {
            addCriterion("payee_id =", value, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idNotEqualTo(Long value) {
            addCriterion("payee_id <>", value, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idGreaterThan(Long value) {
            addCriterion("payee_id >", value, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idGreaterThanOrEqualTo(Long value) {
            addCriterion("payee_id >=", value, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idLessThan(Long value) {
            addCriterion("payee_id <", value, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idLessThanOrEqualTo(Long value) {
            addCriterion("payee_id <=", value, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idIn(List<Long> values) {
            addCriterion("payee_id in", values, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idNotIn(List<Long> values) {
            addCriterion("payee_id not in", values, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idBetween(Long value1, Long value2) {
            addCriterion("payee_id between", value1, value2, "payee_id");
            return (Criteria) this;
        }

        public Criteria andPayee_idNotBetween(Long value1, Long value2) {
            addCriterion("payee_id not between", value1, value2, "payee_id");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameIsNull() {
            addCriterion("customer_name is null");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameIsNotNull() {
            addCriterion("customer_name is not null");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameEqualTo(String value) {
            addCriterion("customer_name =", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameNotEqualTo(String value) {
            addCriterion("customer_name <>", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameGreaterThan(String value) {
            addCriterion("customer_name >", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameGreaterThanOrEqualTo(String value) {
            addCriterion("customer_name >=", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameLessThan(String value) {
            addCriterion("customer_name <", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameLessThanOrEqualTo(String value) {
            addCriterion("customer_name <=", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameLike(String value) {
            addCriterion("customer_name like", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameNotLike(String value) {
            addCriterion("customer_name not like", value, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameIn(List<String> values) {
            addCriterion("customer_name in", values, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameNotIn(List<String> values) {
            addCriterion("customer_name not in", values, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameBetween(String value1, String value2) {
            addCriterion("customer_name between", value1, value2, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_nameNotBetween(String value1, String value2) {
            addCriterion("customer_name not between", value1, value2, "customer_name");
            return (Criteria) this;
        }

        public Criteria andCustomer_telIsNull() {
            addCriterion("customer_tel is null");
            return (Criteria) this;
        }

        public Criteria andCustomer_telIsNotNull() {
            addCriterion("customer_tel is not null");
            return (Criteria) this;
        }

        public Criteria andCustomer_telEqualTo(String value) {
            addCriterion("customer_tel =", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telNotEqualTo(String value) {
            addCriterion("customer_tel <>", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telGreaterThan(String value) {
            addCriterion("customer_tel >", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telGreaterThanOrEqualTo(String value) {
            addCriterion("customer_tel >=", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telLessThan(String value) {
            addCriterion("customer_tel <", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telLessThanOrEqualTo(String value) {
            addCriterion("customer_tel <=", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telLike(String value) {
            addCriterion("customer_tel like", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telNotLike(String value) {
            addCriterion("customer_tel not like", value, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telIn(List<String> values) {
            addCriterion("customer_tel in", values, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telNotIn(List<String> values) {
            addCriterion("customer_tel not in", values, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telBetween(String value1, String value2) {
            addCriterion("customer_tel between", value1, value2, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCustomer_telNotBetween(String value1, String value2) {
            addCriterion("customer_tel not between", value1, value2, "customer_tel");
            return (Criteria) this;
        }

        public Criteria andCar_licenceIsNull() {
            addCriterion("car_licence is null");
            return (Criteria) this;
        }

        public Criteria andCar_licenceIsNotNull() {
            addCriterion("car_licence is not null");
            return (Criteria) this;
        }

        public Criteria andCar_licenceEqualTo(String value) {
            addCriterion("car_licence =", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceNotEqualTo(String value) {
            addCriterion("car_licence <>", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceGreaterThan(String value) {
            addCriterion("car_licence >", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceGreaterThanOrEqualTo(String value) {
            addCriterion("car_licence >=", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceLessThan(String value) {
            addCriterion("car_licence <", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceLessThanOrEqualTo(String value) {
            addCriterion("car_licence <=", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceLike(String value) {
            addCriterion("car_licence like", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceNotLike(String value) {
            addCriterion("car_licence not like", value, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceIn(List<String> values) {
            addCriterion("car_licence in", values, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceNotIn(List<String> values) {
            addCriterion("car_licence not in", values, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceBetween(String value1, String value2) {
            addCriterion("car_licence between", value1, value2, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_licenceNotBetween(String value1, String value2) {
            addCriterion("car_licence not between", value1, value2, "car_licence");
            return (Criteria) this;
        }

        public Criteria andCar_typeIsNull() {
            addCriterion("car_type is null");
            return (Criteria) this;
        }

        public Criteria andCar_typeIsNotNull() {
            addCriterion("car_type is not null");
            return (Criteria) this;
        }

        public Criteria andCar_typeEqualTo(String value) {
            addCriterion("car_type =", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeNotEqualTo(String value) {
            addCriterion("car_type <>", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeGreaterThan(String value) {
            addCriterion("car_type >", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeGreaterThanOrEqualTo(String value) {
            addCriterion("car_type >=", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeLessThan(String value) {
            addCriterion("car_type <", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeLessThanOrEqualTo(String value) {
            addCriterion("car_type <=", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeLike(String value) {
            addCriterion("car_type like", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeNotLike(String value) {
            addCriterion("car_type not like", value, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeIn(List<String> values) {
            addCriterion("car_type in", values, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeNotIn(List<String> values) {
            addCriterion("car_type not in", values, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeBetween(String value1, String value2) {
            addCriterion("car_type between", value1, value2, "car_type");
            return (Criteria) this;
        }

        public Criteria andCar_typeNotBetween(String value1, String value2) {
            addCriterion("car_type not between", value1, value2, "car_type");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoIsNull() {
            addCriterion("appointment_ano is null");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoIsNotNull() {
            addCriterion("appointment_ano is not null");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoEqualTo(String value) {
            addCriterion("appointment_ano =", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoNotEqualTo(String value) {
            addCriterion("appointment_ano <>", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoGreaterThan(String value) {
            addCriterion("appointment_ano >", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoGreaterThanOrEqualTo(String value) {
            addCriterion("appointment_ano >=", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoLessThan(String value) {
            addCriterion("appointment_ano <", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoLessThanOrEqualTo(String value) {
            addCriterion("appointment_ano <=", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoLike(String value) {
            addCriterion("appointment_ano like", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoNotLike(String value) {
            addCriterion("appointment_ano not like", value, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoIn(List<String> values) {
            addCriterion("appointment_ano in", values, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoNotIn(List<String> values) {
            addCriterion("appointment_ano not in", values, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoBetween(String value1, String value2) {
            addCriterion("appointment_ano between", value1, value2, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andAppointment_anoNotBetween(String value1, String value2) {
            addCriterion("appointment_ano not between", value1, value2, "appointment_ano");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeIsNull() {
            addCriterion("checkin_time is null");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeIsNotNull() {
            addCriterion("checkin_time is not null");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeEqualTo(Date value) {
            addCriterion("checkin_time =", value, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeNotEqualTo(Date value) {
            addCriterion("checkin_time <>", value, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeGreaterThan(Date value) {
            addCriterion("checkin_time >", value, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("checkin_time >=", value, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeLessThan(Date value) {
            addCriterion("checkin_time <", value, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeLessThanOrEqualTo(Date value) {
            addCriterion("checkin_time <=", value, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeIn(List<Date> values) {
            addCriterion("checkin_time in", values, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeNotIn(List<Date> values) {
            addCriterion("checkin_time not in", values, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeBetween(Date value1, Date value2) {
            addCriterion("checkin_time between", value1, value2, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckin_timeNotBetween(Date value1, Date value2) {
            addCriterion("checkin_time not between", value1, value2, "checkin_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeIsNull() {
            addCriterion("checkout_time is null");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeIsNotNull() {
            addCriterion("checkout_time is not null");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeEqualTo(Date value) {
            addCriterion("checkout_time =", value, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeNotEqualTo(Date value) {
            addCriterion("checkout_time <>", value, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeGreaterThan(Date value) {
            addCriterion("checkout_time >", value, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("checkout_time >=", value, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeLessThan(Date value) {
            addCriterion("checkout_time <", value, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeLessThanOrEqualTo(Date value) {
            addCriterion("checkout_time <=", value, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeIn(List<Date> values) {
            addCriterion("checkout_time in", values, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeNotIn(List<Date> values) {
            addCriterion("checkout_time not in", values, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeBetween(Date value1, Date value2) {
            addCriterion("checkout_time between", value1, value2, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andCheckout_timeNotBetween(Date value1, Date value2) {
            addCriterion("checkout_time not between", value1, value2, "checkout_time");
            return (Criteria) this;
        }

        public Criteria andBusiness_idIsNull() {
            addCriterion("business_id is null");
            return (Criteria) this;
        }

        public Criteria andBusiness_idIsNotNull() {
            addCriterion("business_id is not null");
            return (Criteria) this;
        }

        public Criteria andBusiness_idEqualTo(Long value) {
            addCriterion("business_id =", value, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idNotEqualTo(Long value) {
            addCriterion("business_id <>", value, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idGreaterThan(Long value) {
            addCriterion("business_id >", value, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idGreaterThanOrEqualTo(Long value) {
            addCriterion("business_id >=", value, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idLessThan(Long value) {
            addCriterion("business_id <", value, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idLessThanOrEqualTo(Long value) {
            addCriterion("business_id <=", value, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idIn(List<Long> values) {
            addCriterion("business_id in", values, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idNotIn(List<Long> values) {
            addCriterion("business_id not in", values, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idBetween(Long value1, Long value2) {
            addCriterion("business_id between", value1, value2, "business_id");
            return (Criteria) this;
        }

        public Criteria andBusiness_idNotBetween(Long value1, Long value2) {
            addCriterion("business_id not between", value1, value2, "business_id");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreate_timeEqualTo(Date value) {
            addCriterion("create_time =", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeGreaterThan(Date value) {
            addCriterion("create_time >", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeLessThan(Date value) {
            addCriterion("create_time <", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIn(List<Date> values) {
            addCriterion("create_time in", values, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idEqualTo(Long value) {
            addCriterion("create_user_id =", value, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idNotEqualTo(Long value) {
            addCriterion("create_user_id <>", value, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idGreaterThan(Long value) {
            addCriterion("create_user_id >", value, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idGreaterThanOrEqualTo(Long value) {
            addCriterion("create_user_id >=", value, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idLessThan(Long value) {
            addCriterion("create_user_id <", value, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idLessThanOrEqualTo(Long value) {
            addCriterion("create_user_id <=", value, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idIn(List<Long> values) {
            addCriterion("create_user_id in", values, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idNotIn(List<Long> values) {
            addCriterion("create_user_id not in", values, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idBetween(Long value1, Long value2) {
            addCriterion("create_user_id between", value1, value2, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_user_idNotBetween(Long value1, Long value2) {
            addCriterion("create_user_id not between", value1, value2, "create_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_timeIsNull() {
            addCriterion("audit_time is null");
            return (Criteria) this;
        }

        public Criteria andAudit_timeIsNotNull() {
            addCriterion("audit_time is not null");
            return (Criteria) this;
        }

        public Criteria andAudit_timeEqualTo(Date value) {
            addCriterion("audit_time =", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeNotEqualTo(Date value) {
            addCriterion("audit_time <>", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeGreaterThan(Date value) {
            addCriterion("audit_time >", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("audit_time >=", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeLessThan(Date value) {
            addCriterion("audit_time <", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeLessThanOrEqualTo(Date value) {
            addCriterion("audit_time <=", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeIn(List<Date> values) {
            addCriterion("audit_time in", values, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeNotIn(List<Date> values) {
            addCriterion("audit_time not in", values, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeBetween(Date value1, Date value2) {
            addCriterion("audit_time between", value1, value2, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeNotBetween(Date value1, Date value2) {
            addCriterion("audit_time not between", value1, value2, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAuditor_idIsNull() {
            addCriterion("auditor_id is null");
            return (Criteria) this;
        }

        public Criteria andAuditor_idIsNotNull() {
            addCriterion("auditor_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuditor_idEqualTo(Long value) {
            addCriterion("auditor_id =", value, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idNotEqualTo(Long value) {
            addCriterion("auditor_id <>", value, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idGreaterThan(Long value) {
            addCriterion("auditor_id >", value, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idGreaterThanOrEqualTo(Long value) {
            addCriterion("auditor_id >=", value, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idLessThan(Long value) {
            addCriterion("auditor_id <", value, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idLessThanOrEqualTo(Long value) {
            addCriterion("auditor_id <=", value, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idIn(List<Long> values) {
            addCriterion("auditor_id in", values, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idNotIn(List<Long> values) {
            addCriterion("auditor_id not in", values, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idBetween(Long value1, Long value2) {
            addCriterion("auditor_id between", value1, value2, "auditor_id");
            return (Criteria) this;
        }

        public Criteria andAuditor_idNotBetween(Long value1, Long value2) {
            addCriterion("auditor_id not between", value1, value2, "auditor_id");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}